﻿using System.ComponentModel.DataAnnotations;
using YNTK.Common.Enum;
using YNTK.Dependency;

namespace YNTK.System.Entitys.Dto.Common
{
    /// <summary>
    /// 动态字段请求模型模型
    /// </summary>
    [SuppressSniffer]
    public class DynamicFieldsRequestModel
    {
        /// <summary>
        /// 动态字段类型(0.文本框 1.多行文本 2.数字 3.时间 4.日期 5.富文本)
        /// </summary>
        [Required(ErrorMessage = "【动态字段】请选择字段类型")]
        public DynamicFieldTypeEnum fieldType { get; set; }

        /// <summary>
        /// 动态字段名称
        /// </summary>
        [Required(ErrorMessage = "【动态字段】字段名称不能为空")]
        public string fieldName { get; set; }

        /// <summary>
        /// 动态字段值
        /// </summary>
        public string fieldValue { get; set; }
    }
}
